18. Events Quiz
Events Quiz
Events Quiz
Here's the code from the previous video:
jack.on("birthday", function(presents) {
console.log("Buy a " + presents);
});
jack.trigger("birthday", "bicycle", "sword", "clarinet");
SOLUTION:
Buy a bicycleSolution
Events Solution